<?php
class DisplayAll extends MY_Controller{
    function shows(){
    	// Get all shows and load array of show-objects into view
		$this->load->model('displayHandler');
    	$shows = $this->displayHandler->getAllShows();
    	$data['shows'] = $shows;
   		$data['title'] = "Shows";
    	$this->load->view('allShowsView', $data);
		$this->load->view('includes/footer');
    }
    function persons(){
   	 	// Get all persons and load array of person-objects into view
    	$this->load->model('displayHandler');
    	$persons = $this->displayHandler->getAllPersons();
    	$data['persons'] = $persons;
   		$data['title'] = "Persons";
		$this->load->view('allPersonsView', $data);
		$this->load->view('includes/footer');
    }
}